Add identity to TerminatedFailureInfo + CanceledFailureInfo#745
Add identity to TerminatedFailureInfo + CanceledFailureInfo#745
Conversation
d0c7dbd to
d7d9fce
Compare
|
|
||
| message TerminatedFailureInfo { | ||
| // The identity of the worker or client that requested the termination. | ||
| string identity = 1; |
There was a problem hiding this comment.
Does CanceledFailureInfo not need the same field? Like if we need the identity for terminate why not cancel?
There was a problem hiding this comment.
Seems reasonable to me to add it there, too. The only difference AFAICT is that it needs to be threaded through there from the original "cancel" request.
There was a problem hiding this comment.
How is that different then terminate? Isn't it also threaded through?
There was a problem hiding this comment.
AFAICT for "terminate" the TerminatedFailureInfo will be created in the same request as the termination request; but for "cancel" - at least for Nexus - first we need to store the "cancel request" (with the identity) and then once the cancellation actually completes can we create CanceledFailureInfo (and pull the identity info through). No big deal, and maybe this can be improved/simplified, but I just thought I'd mention it.
What changed?
Add
identityfield toTerminatedFailureInfoandCanceledFailureInfo.Why?
To allow storing the identity of the caller that requested the cancellation/termination; and allow clients to retrieve it.
Breaking changes
No
Server PR
NA - usage example: